const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userInfo: state => state.user.userInfo,
  // 异步路由
  addRouters: state => state.permission.addRouters,
  // 全部路由
  permission_routes: state => state.permission.routers,

  roles: state => state.user.roles,
  noticeNum: state => state.user.noticeNum,
  nowNum: state => state.user.nowNum,
};

export default getters;
